import request from '@/utils/request'

// 查询各类型凭证日志列表
export function listCwCredentialsLog(query) {
    return request({
        url: '/cwCredentialsLog/list',
        method: 'post',
        data: query
    })
}

// 查询各类型凭证日志列表
export function listCwCredentialsLog2(query) {
    return request({
        url: '/cwCredentialsLog/list2',
        method: 'post',
        data: query
    })
}

// 查询各类型凭证日志详细
export function getCwCredentialsLog(id) {
    return request({
        url: '/cwCredentialsLog/' + id,
        method: 'get'
    })
}

// 新增各类型凭证日志
export function addCwCredentialsLog(data) {
    return request({
        url: '/cwCredentialsLog/add',
        method: 'post',
        data: data
    })
}

// 修改各类型凭证日志
export function updateCwCredentialsLog(data) {
    return request({
        url: '/cwCredentialsLog/edit',
        method: 'post',
        data: data
    })
}

// 删除各类型凭证日志
export function delCwCredentialsLog(id) {
    return request({
        url: '/cwCredentialsLog/' + id,
        method: 'delete'
    })
}
